<!DOCTYPE html>
<html lang="zxx">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<link rel="icon" href="images/favicon.png">
		<title></title>

		<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
		<link rel="stylesheet" href="css/materialize.css">
		<link rel="stylesheet" href="css/loaders.css">
		<link rel="stylesheet" href="css/lightbox.css">
		<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
		<link rel="stylesheet" href="css/owl.carousel.min.css">
		<link rel="stylesheet" href="css/owl.theme.default.min.css">
		<link rel="stylesheet" href="css/style.css">
		<link rel="stylesheet" href="css/layer.css">

	</head>
	<style>
		.weui-navbar__item {

			font-size: 13px;

		}
	</style>
	<body>

		<!-- navbar -->
		<div class="navbar">
			<div class="container">
				<div class="row">
					<div class="col s9">
						<div class="content-left" onclick="javascript:history.back(-1);">
							<i class="fa fa-chevron-left center"></i>
						</div>
					</div>

				</div>
			</div>

		</div>
		<!-- end navbar -->

		<!-- sidebar -->

		<!-- end sidebar -->

		<!-- list -->
		<div class="segments-page">
			<div class="pages-title">
				<h3>排单记录</h3>
				<div class="line"></div>
			</div>
			<div class="container weui-content">

				<div class="weui-tab">

					<div class="weui-tab__bd proinfo-tab-con">

						<div class="weui-tab__bd-item weui-tab__bd-item--active">
							<div class="weui-panel jyjl" id="list">
							
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
		<!-- end list -->

		<script src="js/jquery.min.js"></script>
		<script src="js/materialize.js"></script>
		<script src="js/numscroller.js"></script>
		<script src="js/lightbox.js"></script>
		<script src="js/owl.carousel.min.js"></script>
		<script src="js/main.js"></script>
		<script src="js/layer.js"></script>
		<script src="js/jquerysession.js"></script>
		<script src="js/jquery.md5.js"></script>
		<script src="js/index.js"></script>
		<script src="js/jquery-weui.min.js"></script>
		<script>
			jQuery(function($) {
				var url = 'Scheduling/Scheduling';
				var List = api_request(url, 'GET');
			
				if (List.code == 1 && List.data.length != 0) {
					var html = ''
					for (var i = 0; i < List.data.length; i++) {
						var ls = List.data[i];
						html
					+= '' +
					'  <div class="weui-media-box weui-media-box_text">' +
					'     <h4 class="weui-media-box__title">-￥<em class="num">' + ls.quota + '订单额度</em></h4>' +
					'     <p class="weui-media-box__desc">产品额度：+￥' + ls.quota + '</p>' +
					'  <p class="weui-media-box__desc">说明:消耗' + ls.quota + '订单额度,选择购买排单天数' + ls.buy_days + '天的产品</p>' +
					'     <p class="weui-media-box__desc" style="display: inline;">当前状态：' + ls.status + ' </p>' +
					'     <p class="weui-media-box__desc">购买时间：<em class="num">' + ls.add_time + '</em> </p>' +
					' </div>';
					}
					var schedulinghtml = document.getElementById("list");
					schedulinghtml.innerHTML += html;
				}
			});
		</script>
	</body>
</html>
